package linked.bean;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Movie {
	private int id;
	private String label;
	private String releaseDate;
	private String genre;
	private String runtime;
	
	
	private List<Actor> actors;

	public Movie(){}

	/**
	 * 
	 * @param id
	 * @param label
	 * @param releaseDate
	 * @param genre
	 * @param actors
	 */
	public Movie(int id, String label, String releaseDate, String genre,
			List<Actor> actors) {
		super();
		this.id = id;
		this.label = label;
		this.releaseDate = releaseDate;
		this.genre = genre;
		this.actors = actors;
	}


	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}


	public String getLabel() {
		return label;
	}


	public void setLabel(String label) {
		this.label = label;
	}


	public String getReleaseDate() {
		return releaseDate;
	}


	public void setReleaseDate(String releaseDate) {
		this.releaseDate = releaseDate;
	}


	public String getGenre() {
		return genre;
	}


	public void setGenre(String genre) {
		this.genre = genre;
	}

	@XmlElement(name="actor")
	public List<Actor> getActors() {
		return actors;
	}


	public void setActors(List<Actor> actors) {
		this.actors = actors;
	}

	public String getRuntime() {
		return runtime;
	}

	public void setRuntime(String runtime) {
		this.runtime = runtime;
	}
	
	
}
